//
//  PageInfo.swift
//  PDF2PNG
//
//  Created by Jarvis on 11/05/2017.
//  Copyright © 2017 Jarvis. All rights reserved.
//

import UIKit

class PageInfo: NSObject {

    var index: Int?
    var image: UIImage?
    var width: Float = 0
    var height: Float = 0
    
    var isSelected: Bool = false
    
    convenience init(image: UIImage?, width: Float, height:Float) {
        self.init()
        
        self.image = image
        self.width = width
        self.height = height
    }
    
    convenience init(image: UIImage?) {
        self.init()
        
        self.image = image
        if image != nil {
            self.width = Float((image?.size.width)!)
            self.height = Float((image?.size.height)!)
        }
    }
    
    convenience init(image: UIImage?, index: Int?) {
        self.init()
        
        self.index = index
        self.image = image
        if image != nil {
            self.width = Float((image?.size.width)!)
            self.height = Float((image?.size.height)!)
        }
    }
        
}
